package xyz.xtt.equity.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.equity.entity.TblBenefitPurchaseRecord;

/**
 * <p>
 * 权益售卖记录表 服务类
 * </p>
 *
 * @author dale
 * @since 2025-02-10
 */
public interface ITblBenefitPurchaseRecordService extends IService<TblBenefitPurchaseRecord> {

	List<TblBenefitPurchaseRecord> getPurchaseRecord(long appUserId, Long packageId);

	/**
	 * 根据业务订单ID统计记录数
	 * 
	 * @param businessOrderId 业务订单ID
	 * @return 记录数
	 */
	long countByBusinessOrderId(Long businessOrderId);

	List<TblBenefitPurchaseRecord> getAssetNoPurchaseRecords(List<Long> assetNodIds, Long userId);

	boolean blockBenefitStatus(List<Long> assetNodIds, Long userId);

	boolean unblockBenefitStatus(List<Long> assetNodIds, Long userId);

	List<TblBenefitPurchaseRecord> getAssetNoPurchaseRecordsNotBlocked(List<Long> assetNodIds, Long receiverId);

}
